<?php
class MyClass
{
	protected $mErrInfo;
	
	function __construct()
	{
		$this->mErrInfo['code'] = 45;
		$this->mErrInfo['msg'] = "Your startup has run out of funding!";
	}

	function GetErr()
	{
		return $this->mErrInfo;
	}
}

echo "Start execution<br>";

$myObj = new MyClass();
$err = $myObj->GetErr();
printf( "Code: %s, Message: %s", $err['code'], $err['msg'] );

echo "<br>End execution<br>";
?>
